package com.sdy.kzyy.biz.service;

import com.sdy.common.model.BizException;
import com.sdy.kzyy.biz.dto.OrderRecordInfoDTO;
import com.sdy.kzyy.biz.dto.OrderRecordDTO;
import com.sdy.kzyy.biz.dto.RecordInfoDTO;
import com.sdy.kzyy.biz.model.OrderRecord;
import com.sdy.mvc.service.BaseService;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zzq
 * @since 2020-03-03
 */
public interface OrderRecordService extends BaseService<OrderRecord> {

    Integer getOrderNumber (String storeCode,String orderTime);
    /**
     * 扫描二维码获取预约信息
     * @param token
     */
    OrderRecordInfoDTO getOrderRecordInfo (String token) throws BizException;

    Boolean confirmMasksGot(String orderId, Integer userId) throws BizException;
    /**
     * 个人预约记录
     * @param userId
     * @return
     */
    List<OrderRecordDTO> getSelfOrderAll(Integer userId) throws BizException;

    /**
     * 根据id查询预约订单的详细信息
     *
     * @param id
     * @return
     * @throws BizException
     */
    RecordInfoDTO getRecordInfoById(Integer id) throws BizException;

    boolean insertNewOrder(OrderRecord orderRecord);

    List<OrderRecord> getRecordInfoByCardId(String card) throws BizException;

    List<OrderRecord> getOnedayRecordInfoByCardId(String card);

}
